package com.simple.modules.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dfe.modules.sys.dao.SysOfficialHolidayDao;
import com.dfe.modules.sys.entity.SysOfficialHolidayEntity;
import com.dfe.modules.sys.service.SysOfficialHolidayService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysOfficialHolidayServiceImpl extends ServiceImpl<SysOfficialHolidayDao, SysOfficialHolidayEntity> implements SysOfficialHolidayService {
    @Override
    public List<SysOfficialHolidayEntity> getAllByFlag(Integer flag) {
        QueryWrapper<SysOfficialHolidayEntity> qw = new QueryWrapper<SysOfficialHolidayEntity>()
                .eq("FLAG",flag);
        return list(qw);
    }
}
